package sunsite.po;

/***********************************************************************
 * Module:  Resource.java
 * Author:  mg
 * Purpose: Defines the Class Resource
 ***********************************************************************/
import java.util.*;

/** @pdOid ed4ce919-a65a-45a4-bfbc-498f6af8ed42 */
public class Resource {

    /** @pdOid 92c50a77-0e6b-46cb-8d64-1359a44bdacb */
    private java.lang.String resId;
    /** @pdOid 7f28d6b4-b0a1-4f0f-972b-e51c2b4c59d3 */
    private java.lang.String resName;
    /** @pdOid 0097d7bc-4e22-479d-a05f-1e50d221d177 */
    private java.lang.String address;
    /** @pdOid 61fe5074-85e5-44f8-a258-e642a8f3e001 */
    private int status;
    /** @pdOid 87439436-1838-4397-be9f-b5471a430a92 */
    private java.util.Date uploadTime;
    /** @pdOid 81063841-3e95-4064-bc1c-d0b4656f3a77 */
    private java.util.Date lastUpdate;
    /** @pdOid c6a6d975-9215-40dd-95c3-a18905c2fa6e */
    private java.lang.String md5;
    private java.lang.String discription;
    private String logoUrl;
    private Long count;

    public Long getCount() {
        if(count==null){
            count=new Long(0);
        }
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }
    /** @pdRoleInfo migr=no name=Usr assc=uploadUser mult=0..1 side=A */
    private Usr usr;
    /** @pdRoleInfo migr=no name=ResourceType assc=resourceResourceType mult=0..1 side=A */
    private ResourceType resourceType;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getLastUpdate() {
        return lastUpdate;
    }

    public void setLastUpdate(Date lastUpdate) {
        this.lastUpdate = lastUpdate;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public String getResId() {
        return resId;
    }

    public void setResId(String resId) {
        this.resId = resId;
    }

    public String getResName() {
        return resName;
    }

    public void setResName(String resName) {
        this.resName = resName;
    }

    public ResourceType getResourceType() {
        return resourceType;
    }

    public void setResourceType(ResourceType resourceType) {
        this.resourceType = resourceType;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Date getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Date uploadTime) {
        this.uploadTime = uploadTime;
    }

    public Usr getUsr() {
        return usr;
    }

    public void setUsr(Usr usr) {
        this.usr = usr;
    }

    public String getDiscription() {
        return discription;
    }

    public void setDiscription(String discription) {
        this.discription = discription;
    }

    public String getLogoUrl() {
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl;
    }
}
